
export function strTranArray(str) {
  if(str == null) {
    return null;
  }
  let arr = str.split(",");
  let res = [];
  for(let i = 0; i < arr.length; i++) {
    res[i] = parseInt(arr[i]);
  }
  return res;
}

export function arrayTranStr(arr) {
  if(arr == null || arr.length === 0) {
    return null;
  }
  let res = "" + arr[0];
  for(let i = 1; i < arr.length; i++) {
    res += "," + arr[i];
  }
  return res;
}
